import request from "../../common/utils/request";

const iframeMessage = {
  state: {
    /*详情*/
    showBillDetailDrawer: false,

    bill_id: "",
    /*收支流水*/
    addTurnoverInfo: {},
    showAddTurnover: false,
    /*收支流水详情*/
    showTurnoverDrawer: false,
    bill_stream_id: "",
    addTurnoverOwnerId: 0,
    addTurnoverVisible: false,
  },
  mutations: {
    SET_SHOW_BILL_DETAIL_DRAWER: (state, data) => {
      state.showBillDetailDrawer = data;
    },
    SET_BILL_ID: (state, data) => {
      state.bill_id = data;
    },
    SET_ADD_TURNOVER_INFO: (state, data) => {
      state.addTurnoverInfo = data;
    },
    SET_ADD_TURNOVER_OWNER_ID: (state, data) => {
      state.addTurnoverOwnerId = data;
    },
    SET_ADD_TURNOVER_VISIBLE: (state, data) => {
      state.addTurnoverVisible = data;
    },
    SET_SHOW_ADD_TURNOVER: (state, data) => {
      state.showAddTurnover = data;
    },
    SET_SHOW_TYRNOVER_DRAWER: (state, data) => {
      state.showTurnoverDrawer = data;
    },
    SET_BILL_STREAM__ID: (state, data) => {
      state.bill_stream_id = data;
    },
  },
  actions: {},
};

export default iframeMessage;
